home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Magazine / C_Tutorial / Part-13 / PatchLib / include / inline / patch.h
Encoding:
C/C++ Source or Header  |  1997-12-10  |  4.2 KB  |  129 lines

  1. /* Automatically generated header! Do not edit! */
  2.  
  3. #ifndef _INLINE_PATCH_H
  4. #define _INLINE_PATCH_H
  5.  
  6. #ifndef __INLINE_MACROS_H
  7. #include <inline/macros.h>
  8. #endif /* !__INLINE_MACROS_H */
  9.  
  10. #ifndef PATCH_BASE_NAME
  11. #define PATCH_BASE_NAME PatchBase
  12. #endif /* !PATCH_BASE_NAME */
  13.  
  14. #define AddPatchNotifyA(msgport, tagList) \
  15.     LP2(0x72, ULONG, AddPatchNotifyA, struct MsgPort *, msgport, a0, struct TagItem *, tagList, a1, \
  16.     , PATCH_BASE_NAME)
  17.  
  18. #ifndef NO_INLINE_STDARG
  19. #define AddPatchNotify(a0, tags...) \
  20.     ({ULONG _tags[] = { tags }; AddPatchNotifyA((a0), (struct TagItem *)_tags);})
  21. #endif /* !NO_INLINE_STDARG */
  22.  
  23. #define CreatePatchProjectA(name, tagList) \
  24.     LP2(0x60, APTR, CreatePatchProjectA, STRPTR, name, a0, struct TagItem *, tagList, a1, \
  25.     , PATCH_BASE_NAME)
  26.  
  27. #ifndef NO_INLINE_STDARG
  28. #define CreatePatchProject(a0, tags...) \
  29.     ({ULONG _tags[] = { tags }; CreatePatchProjectA((a0), (struct TagItem *)_tags);})
  30. #endif /* !NO_INLINE_STDARG */
  31.  
  32. #define FindPatch(name) \
  33.     LP1(0x30, struct Patch *, FindPatch, UBYTE *, name, a0, \
  34.     , PATCH_BASE_NAME)
  35.  
  36. #define FindPatchTagsA(tagList) \
  37.     LP1(0x42, APTR, FindPatchTagsA, struct TagItem *, tagList, a0, \
  38.     , PATCH_BASE_NAME)
  39.  
  40. #ifndef NO_INLINE_STDARG
  41. #define FindPatchTags(tags...) \
  42.     ({ULONG _tags[] = { tags }; FindPatchTagsA((struct TagItem *)_tags);})
  43. #endif /* !NO_INLINE_STDARG */
  44.  
  45. #define GetPatchA(patch, tagList) \
  46.     LP2(0x4e, ULONG, GetPatchA, struct Patch *, patch, a0, struct TagItem *, tagList, a1, \
  47.     , PATCH_BASE_NAME)
  48.  
  49. #ifndef NO_INLINE_STDARG
  50. #define GetPatch(a0, tags...) \
  51.     ({ULONG _tags[] = { tags }; GetPatchA((a0), (struct TagItem *)_tags);})
  52. #endif /* !NO_INLINE_STDARG */
  53.  
  54. #define InstallPatch(newPatch) \
  55.     LP1(0x1e, struct Patch *, InstallPatch, struct NewPatch *, newPatch, a0, \
  56.     , PATCH_BASE_NAME)
  57.  
  58. #define InstallPatchTagsA(funcEntry, funcOffset, tagList) \
  59.     LP3FP(0x36, struct Patch *, InstallPatchTagsA, __fpt, funcEntry, a0, long, funcOffset, d0, struct TagItem *, tagList, a1, \
  60.     , PATCH_BASE_NAME, unsigned long (*__fpt)())
  61.  
  62. #ifndef NO_INLINE_STDARG
  63. #define InstallPatchTags(a0, a1, tags...) \
  64.     ({ULONG _tags[] = { tags }; InstallPatchTagsA((a0), (a1), (struct TagItem *)_tags);})
  65. #endif /* !NO_INLINE_STDARG */
  66.  
  67. #define PatchAlloc(type) \
  68.     LP1(0x7e, APTR, PatchAlloc, ULONG, type, d0, \
  69.     , PATCH_BASE_NAME)
  70.  
  71. #define PatchFreeVec(memoryBlock) \
  72.     LP1NR(0x54, PatchFreeVec, APTR, memoryBlock, a1, \
  73.     , PATCH_BASE_NAME)
  74.  
  75. #define RemPatchNotifyA(msgport, tagList) \
  76.     LP2(0x78, ULONG, RemPatchNotifyA, struct MsgPort *, msgport, a0, struct TagItem *, tagList, a1, \
  77.     , PATCH_BASE_NAME)
  78.  
  79. #ifndef NO_INLINE_STDARG
  80. #define RemPatchNotify(a0, tags...) \
  81.     ({ULONG _tags[] = { tags }; RemPatchNotifyA((a0), (struct TagItem *)_tags);})
  82. #endif /* !NO_INLINE_STDARG */
  83.  
  84. #define RemovePatch(patch) \
  85.     LP1(0x2a, ULONG, RemovePatch, struct Patch *, patch, a0, \
  86.     , PATCH_BASE_NAME)
  87.  
  88. #define RemovePatchProjectA(project, tagList) \
  89.     LP2(0x5a, ULONG, RemovePatchProjectA, APTR, project, a0, struct TagItem *, tagList, a1, \
  90.     , PATCH_BASE_NAME)
  91.  
  92. #ifndef NO_INLINE_STDARG
  93. #define RemovePatchProject(a0, tags...) \
  94.     ({ULONG _tags[] = { tags }; RemovePatchProjectA((a0), (struct TagItem *)_tags);})
  95. #endif /* !NO_INLINE_STDARG */
  96.  
  97. #define RemovePatchTagsA(patch, tagList) \
  98.     LP2(0x3c, ULONG, RemovePatchTagsA, struct Patch *, patch, a0, struct TagItem *, tagList, a1, \
  99.     , PATCH_BASE_NAME)
  100.  
  101. #ifndef NO_INLINE_STDARG
  102. #define RemovePatchTags(a0, tags...) \
  103.     ({ULONG _tags[] = { tags }; RemovePatchTagsA((a0), (struct TagItem *)_tags);})
  104. #endif /* !NO_INLINE_STDARG */
  105.  
  106. #define SetPatchA(patch, tagList) \
  107.     LP2(0x48, ULONG, SetPatchA, struct Patch *, patch, a0, struct TagItem *, tagList, a1, \
  108.     , PATCH_BASE_NAME)
  109.  
  110. #ifndef NO_INLINE_STDARG
  111. #define SetPatch(a0, tags...) \
  112.     ({ULONG _tags[] = { tags }; SetPatchA((a0), (struct TagItem *)_tags);})
  113. #endif /* !NO_INLINE_STDARG */
  114.  
  115. #define SetPatchProjectA(project, tagList) \
  116.     LP2(0x66, ULONG, SetPatchProjectA, APTR, project, a0, struct TagItem *, tagList, a1, \
  117.     , PATCH_BASE_NAME)
  118.  
  119. #ifndef NO_INLINE_STDARG
  120. #define SetPatchProject(a0, tags...) \
  121.     ({ULONG _tags[] = { tags }; SetPatchProjectA((a0), (struct TagItem *)_tags);})
  122. #endif /* !NO_INLINE_STDARG */
  123.  
  124. #define WaitRemovePatch(patch) \
  125.     LP1(0x24, ULONG, WaitRemovePatch, struct Patch *, patch, a0, \
  126.     , PATCH_BASE_NAME)
  127.  
  128. #endif /* !_INLINE_PATCH_H */
  129.